<%@ page contentType="text/html;charset=UTF-8" %>
<%@ include file="/WEB-INF/views/include/taglib.jsp"%>
<html>
<head>
	<title>意见反馈管理管理</title>
	<meta name="decorator" content="default"/>
	<script type="text/javascript">
		$(document).ready(function() {
			
		});
		function page(n,s){
			$("#pageNo").val(n);
			$("#pageSize").val(s);
			layer.load(1, {
			    shade: [0.3,'#000'] //0.1透明度的白色背景
			});
			$("#searchForm").submit();
        	return false;
        }
        <shiro:hasPermission name="basedata:feedbackMsg:edit">
		function deleteById(id){
			layer.confirm('确认要删除该意见反馈管理吗？', {
				btn: ['确定','取消']
			}, function(){
				window.location.href='${ctx}/basedata/feedbackMsg/delete?id='+id;
			}, function(){
				layer.msg('删除取消', {
					time: 2000 //2s后自动关闭
					 });
			});
        }
        </shiro:hasPermission>
	</script>
</head>
<body>
	<ul class="nav nav-tabs nav-tabss">
		<li class="active"><a href="${ctx}/basedata/feedbackMsg/">意见反馈管理列表</a></li>
	<!-- <shiro:hasPermission name="basedata:feedbackMsg:edit"><li><a href="${ctx}/basedata/feedbackMsg/form">意见反馈管理添加</a></li></shiro:hasPermission> -->	
	</ul>
	<form:form id="searchForm" modelAttribute="feedbackMsg" action="${ctx}/basedata/feedbackMsg/" method="post" class="breadcrumb form-search form-inline">
		<input id="pageNo" name="pageNo" type="hidden" value="${page.pageNo}"/>
		<input id="pageSize" name="pageSize" type="hidden" value="${page.pageSize}"/>

            <label>用户联系方式：</label>
            <form:input path="contactInfo" htmlEscape="false" cssClass="form-control"/>
            <label>是否处理：</label>
           	<form:select path="doFlag" htmlEscape="false" cssClass="form-control">
           	<form:option value="0">0-未处理</form:option>
           	<form:option value="1">1-已处理</form:option>
           	</form:select> 
		&nbsp;<input id="btnSubmit" class="btn btn-sm btn-primary" type="submit" value="查询"/>
	</form:form>
	<tags:message content="${message}"/>
	<table id="contentTable" class="table table-striped table-bordered table-condensed">
		<thead><tr>
     <!--   <th>version</th>    
            <th>msgType</th> --> 
            <th>意见主题类型</th>
            <th>意见内容</th>
            <th>回复内容</th>
            <th>用户联系方式</th>
            <th>是否处理</th>
			<shiro:hasPermission name="basedata:feedbackMsg:edit"><th>操作</th></shiro:hasPermission></tr></thead>
		<tbody>
		<c:forEach items="${page.list}" var="feedbackMsg">
			<tr>
           <!--     <td>${feedbackMsg.version}</td>
                <td>${feedbackMsg.msgType}</td> --> 
                <td>
                 <c:if test="${feedbackMsg.msgMemuId == 1}" >
                 	1-系统设置
                 </c:if>
                 <c:if test="${feedbackMsg.msgMemuId == 2}" >
                 	2-菜品管理 
                 </c:if>
                 <c:if test="${feedbackMsg.msgMemuId == 3}" >
                 	3-餐桌管理 
                 </c:if>
                 <c:if test="${feedbackMsg.msgMemuId == 4}" >
                 	4-人员管理
                 </c:if>
                 <c:if test="${feedbackMsg.msgMemuId == 5}" >
                 	 5-点餐结账 
                 </c:if>
                 <c:if test="${feedbackMsg.msgMemuId == 6}" >
                 	6-厨房管理 
                 </c:if>
                 <c:if test="${feedbackMsg.msgMemuId == 7}" >
                 	7-查询报表
                 </c:if>
                 <c:if test="${feedbackMsg.msgMemuId == 8}" >
                 	 8-界面
                 </c:if>
                </td>
                <td>${feedbackMsg.msgInfo}</td>
                <td>${feedbackMsg.replyInfo}</td>
                <td>${feedbackMsg.contactInfo}</td>
                <td>
                 <c:if test="${feedbackMsg.doFlag == 0}" >
                 	0-未处理
                 </c:if>
                 <c:if test="${feedbackMsg.doFlag == 1}" >
                 	1-已处理 
                 </c:if>
                 </td>
                
				<shiro:hasPermission name="basedata:feedbackMsg:edit"><td>
    				<a href="${ctx}/basedata/feedbackMsg/form?id=${feedbackMsg.id}">修改</a>
                    <a href="javascript:deleteById('${feedbackMsg.id}')">删除</a>
				</td></shiro:hasPermission>
			</tr>
		</c:forEach>
		</tbody>
	</table>
	<div class="pagination">${page}</div>
</body>
</html>
